package com.ebupt.migu.music.approve.service.impl;

import com.ebupt.migu.music.approve.mapper.SoundMapper;
import com.ebupt.migu.music.approve.service.SoundService;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author xuhongsong
 * @version 1.0
 * @date 2020/10/28 17:11
 */
@Slf4j
@Service
public class SoundServiceImpl implements SoundService {

    @Autowired
    private SoundMapper soundMapper;
    /**
     *  查询最新一条数据更新
     * @return
     */
    @Override
    public Map<String, Object> soundReco() {
        return soundMapper.soundReco();
    }
    /**
     *
     * @param recoDefault
     * @param recoDisplay
     * @return
     */
    @Override
    public int update(Integer recoDefault, Integer recoDisplay) {
        return soundMapper.update(recoDefault,recoDisplay);
    }

    /**
     *  查询版本号
     * @return
     */
    @Override
    public List<Map<String,Object>> selectAppVersion() {
        return soundMapper.selectAppVersion();
    }
}
